package net.sk.china.city.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 订单项
 * </p>
 *
 * @author 小王八
 * @since 2024-06-03
 */
@Getter
@Setter
@TableName("ar_order_item")
public class OrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "pk_id", type = IdType.AUTO)
    private Long pkId;

    /**
     * 所属订单id
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 商品id
     */
    @TableField("product_id")
    private Long productId;

    /**
     * 商品名称
     */
    @TableField("product_name")
    private String productName;

    /**
     * 数量
     */
    @TableField("amount")
    private Integer amount;

    /**
     * 单价(单位分)
     */
    @TableField("unit_price")
    private Integer unitPrice;

    @TableField("pro_img")
    private String proImg;

    /**
     * 规格
     */
    @TableField("specifications")
    private String specifications;


}
